# Maintainer:  Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-authen-sasl
_realname=Authen-SASL
pkgver=2.16
pkgrel=3
pkgdesc="SASL Authentication framework for perl"
url="https://metacpan.org/release/Authen-SASL"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-digest-hmac"
makedepends="perl-module-install"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/G/GB/GBARR/Authen-SASL-$pkgver.tar.gz"

builddir="$srcdir/$_realname-$pkgver"

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install

	# creates file collision among perl modules
	find "$pkgdir" -name perllocal.pod -delete
}

sha512sums="d472b8b07b8915e65a219c0a40a7b6f25ca4fb767df301f426224b8f6ebf24d66fcb4422a1f421c39631e84585af06f6c64e41abe11e1e505d03e43a9f86bd6f  Authen-SASL-2.16.tar.gz"
